package com.bosssoft.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bosssoft.entity.dto.FibRoleAuthDTO;
import com.bosssoft.entity.po.FibRoleAuthPO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.entity.vo.FibRoleAuthVO;

/**
 * @author Li kexi
 * Created on 2021/8/16.14:32
 */
public interface FibRoleAuthService extends IService<FibRoleAuthPO>{

    boolean addRoleAuth(FibRoleAuthDTO roleAuthDTO);

    boolean modifyRoleAuth(FibRoleAuthDTO roleAuthDTO);

    boolean banRoleAuthById(Long id, Integer status);

    boolean deleteRoleAuthById(Long id);

    List<Long> getAllAuthIdByRoleId(Long roleId);

    IPage<FibRoleAuthPO> getAllAuthByRoleIdPaging(Long roleId);

    int updateBatch(List<FibRoleAuthPO> list);

    int updateBatchSelective(List<FibRoleAuthPO> list);

    int batchInsert(List<FibRoleAuthPO> list);

    int insertOrUpdate(FibRoleAuthPO record);

    int insertOrUpdateSelective(FibRoleAuthPO record);

}
